home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part2 / 16158 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  2.0 KB

  1. Path: gaia.ns.utk.edu!mbk
  2. From: mbk@caffeine.engr.utk.edu (Matt Kennel)
  3. Newsgroups: comp.lang.java,comp.lang.c++,comp.lang.smalltalk
  4. Subject: Re: Will Java kill C++?
  5. Followup-To: comp.lang.java,comp.lang.c++,comp.lang.smalltalk
  6. Date: 9 Apr 1996 20:08:06 GMT
  7. Organization: University of Tennessee, Knoxville and Oak Ridge National Laboratory
  8. Message-ID: <4keg36$cc4@gaia.ns.utk.edu>
  9. References: <3134D499.653E@ix.netcom.com> <315BFB16.B74@isg.de> <4jgv6t$hon@kadath.zeitgeist.net> <4k3cdo$np5@taurus.adnc.com> <DpEJnu.DDL@news.hawaii.edu> <Pine.SGI.3.91.960405170438.21749A-100000@umbc8.umbc.edu>
  10. Reply-To: kennel@msr.epm.ornl.gov
  11. NNTP-Posting-Host: caffeine.engr.utk.edu
  12. X-Newsreader: TIN [version 1.2 PL2]
  13.  
  14. Peter Jackson (pjacks1@gl.umbc.edu) wrote:
  15. : > What about multiple inheritance?  
  16.  
  17. : From the white paper on Java:
  18.  
  19. : Multiple inheritance - and all the problems it generates - has been 
  20. : discarded from Java. The desirable features of multiple inheritance are 
  21. : provided by interfaces - conceptually similar to Objective C protocols.
  22.  
  23. There are desirable features of multiple inheritance not provided
  24. by 'interfaces' which work cleanly and without problem. 
  25.  
  26. They just don't happen to work like C++. 
  27.  
  28. : > Functions as first class objects?
  29.  
  30. : Ummm...what are functions? I've never heard of a java function,  only a C 
  31. : function.
  32.  
  33. : Another quote from the paper:
  34.  
  35. : Java has no functions. Object oriented supesedes functional and procedural 
  36. : styles.  Mixing the two just leads to confusion and dilutes the purity of 
  37. : an object oriented language.
  38.  
  39. And our precious bodily fluids, no doubt.  
  40.  
  41. What we're talking about is 'closures' which are sort of like very-souped-
  42. up function pointers and they work just fine with object oriented 
  43. programming.  
  44.  
  45.  
  46. I happen to program in an OO language which has MI of implementation and
  47. interface (separated) and a bit of closures and real genericity some other 
  48. cool things not yet even known to Java's philosphy. 
  49.  
  50. : Peter Jackson, CNA          * Life's a BETA,
  51.